﻿  <?xml version="1.0" ?>
<handlers>

    <!-- ASP.NET AJAX (required) -->
    <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <!-- End ASP.NET AJAX -->

    <!-- MetaWeblog handlers (required for Live Writer/MetaWeblog support) -->
    <add name="MetaWeblog" type="TemplateFoundation.MetaWeblog.MetaWeblogHandler" path="/metaweblog" verb="GET" />
    <add name="LiveWriterManifest" type="TemplateFoundation.MetaWeblog.ManifestHandler" path="/wlwmanifest.xml" verb="GET" />
    <add name="ReallySimpleDiscovery" type="TemplateFoundation.MetaWeblog.ReallySimpleDiscoveryHandler" path="/rsd.xml" verb="GET" />
    <!-- End MetaWeblog handlers -->

    <!-- Embedded resources handlers -->
    <location path="TemplateFoundation">
      <system.webServer>
        <handlers>
          <add name="PageTypeIconHandler" preCondition="integratedMode" verb="GET" path="/TemplateFoundation/Images/PageIcons/*" type="TemplateFoundation.Handlers.EmbeddedImagesHandler" />
          <add name="TemplateFoundationImagesLoader" type="TemplateFoundation.Handlers.EmbeddedImagesHandler" path="/TemplateFoundation/images/*" verb="GET"/>
          <add name="TemplateFoundationHtmlLoader" type="TemplateFoundation.Handlers.EmbeddedHtmlHandler" path="/TemplateFoundation/*.html" verb="GET" />
        </handlers>
      </system.webServer>
    </location>
    <!-- End Embedded resources handlers -->

    <!-- Permanent links handlers -->
    <add name="PermanentLinksHandler" type="TemplateFoundation.Handlers.PermanentLinksHandler" path="/link/*" verb="*" />
    <!-- End Permanent links handlers -->

    <!-- Dynamic Image Processor -->
    <add name="png" verb="GET,HEAD" path="*.png" type="TemplateFoundation.Handlers.DynamicImageProcessor.Processor" />
    <add name="jpg" verb="GET,HEAD" path="*.jpg" type="TemplateFoundation.Handlers.DynamicImageProcessor.Processor" />
    <add name="gif" verb="GET,HEAD" path="*.gif" type="TemplateFoundation.Handlers.DynamicImageProcessor.Processor" />
    <!-- End Dynamic Image Processor-->

    <!-- Use british flag for "en" language -->
    <location path="App_Themes/Default">
        <system.webServer>
          <handlers>
            <clear />
            <add name="britishFlagHandler" path="/App_Themes/Default/Images/flags/en.gif" verb="GET" type="TemplateFoundation.Handlers.BritishFlagIconHandler"/>
            <add name="wildcard" path="*" verb="*" type="EPiServer.Web.StaticFileHandler, EPiServer" />
          </handlers>
        </system.webServer>
    </location>
    <!-- End Use british flag for "en" language -->

    <!-- ETF login page logo handler -->
    <add name="EPiServerLoginLogo" preCondition="integratedMode" verb="GET" path="/Util/images/EPiServerCMSLogo.png" type="TemplateFoundation.Handlers.EPiServerCustomization.LoginLogoHandler"/>
    <!-- End ETF login page logo handler -->
  
    <!-- ETF TinyMCE handlers -->
    <location path="util/editor/tinymce/plugins">
      <system.webServer>
        <handlers>
          <add name="AllowIframeElementPluginScriptFile" path="/util/editor/tinymce/plugins/AllowIframeElementPlugin/editor_plugin.js" verb="GET" type="TemplateFoundation.Handlers.EmptyFileHandler, TemplateFoundation" />
          <add name="AllowScriptElementPluginScriptFile" path="/util/editor/tinymce/plugins/AllowScriptElementPlugin/editor_plugin.js" verb="GET" type="TemplateFoundation.Handlers.EmptyFileHandler, TemplateFoundation" />
        </handlers>
      </system.webServer>
    </location>

</handlers>
